package part13_访问者模式_歌手打分;

/**
 * @ClassName: Client
 * @Author: AllenSun
 * @Date: 2020/3/5 23:09
 */
public class Client {
    public static void main(String[] args) {
        //创建Object
        ObjectStructure objectStructure=new ObjectStructure();

        objectStructure.attach(new Man());
        objectStructure.attach(new Woman());
        objectStructure.attach(new Man());

        //成功
        Success success=new Success();

        objectStructure.deisplay(success);

        Fail fail=new Fail();
        objectStructure.deisplay(fail);

        Wait wait=new Wait();
        objectStructure.deisplay(wait);
    }
}
